package com.assignwork.service;

import com.assignwork.dto.CorpMachineSearchDTO;
import com.assignwork.dto.CorpMachineSubmitDTO;
import com.assignwork.entity.CorpMachine;
import com.assignwork.vo.CorpMachineListVO;
import com.baomidou.mybatisplus.core.metadata.IPage;
import org.springblade.core.mp.base.BaseService;

import java.util.List;

/**
 * @ClassName ICorpMachineService
 * @Description 单位机械接口
 * @Author dujianyu
 * @Date 2023/12/8 9:51
 */
public interface ICorpMachineService extends BaseService<CorpMachine> {
    /**
     * 分页
     * @param dto 搜索条件
     * @param page 分页
     * @return IPage<CorpMachineListVO>
     * @author dujianyu
     * @since 2023/12/15 10:07
     */
    IPage<CorpMachineListVO> selectCorpMachinePage(CorpMachineSearchDTO dto, IPage<CorpMachineListVO> page);

    /**
     * 列表
     * @param dto 搜索条件
     * @return List<CorpMachineListVO>
     * @author dujianyu
     * @since 2023/12/15 10:14
     */
    List<CorpMachineListVO> selectCorpMachineList(CorpMachineSearchDTO dto);

    /**
     * 新增或修改
     * @param dto 数据
     * @return boolean
     * @author dujianyu
     * @since 2023/12/15 10:27
     */
    boolean submitCorpMachine(CorpMachineSubmitDTO dto);

    List<CorpMachineListVO> listFixedMachine(CorpMachineSearchDTO dto);

}
